package com.example.fragload.fragments;

import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;


import com.example.fragload.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * 键盘
 */
public class SecondFragment extends Fragment {

    private final String FRAGNAME = "Fragment_02";
    private final String TAG = "scj";

    private RecyclerView.LayoutManager layoutManager;
    private Unbinder unbinder;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_2, container, false);
        Log.w(TAG, FRAGNAME + " onCreateView");
        unbinder = ButterKnife.bind(this, root);
        return root;
    }

    @Override
    public void onAttach(@NonNull Context context) {
        super.onAttach(context);
        Log.w(TAG, FRAGNAME + " onAttach");
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.w(TAG, FRAGNAME + " onCreate");
    }


    @Override
    public void onStart() {
        super.onStart();
        Log.w(TAG, FRAGNAME + " onStart");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.w(TAG, FRAGNAME + " onResume");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.w(TAG, FRAGNAME + " onPause");
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.w(TAG, FRAGNAME + " onStop");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.w(TAG, FRAGNAME + " onDestroy");
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
        Log.w(TAG, FRAGNAME + " onDestroyView");
    }

    @Override
    public void onDetach() {
        super.onDetach();
        Log.w(TAG, FRAGNAME + " onDetach");
    }
}
